import { fromJS } from 'immutable'
import * as types from '@/typings/homeType'

export default {
  [types.HOME_ADD_SWIPER](state, data) {
    return state.set('swiperData', fromJS(data))
  },
  [types.HOME_ADD_HOTCATE](state, data) {
    return state.set('hotcate', fromJS(data))
  }
}